/**
 * @copyright Copyright(C) 2023, Fortior Technology Co., Ltd. All rights reserved.
 * @file      OLED.h
 * @author    Fortiortech Application Team
 * @date      2023-07-17
 * @brief     This file contains all the common data types used for I2C Control.
 */

/* Define to prevent recursive inclusion -------------------------------------------------------- */
#ifndef __OLED_H__
#define __OLED_H__

/*************************************************************************************///ConfigCMD(Don't touch)

//#define SIZE        16
#define XLevelL		0x02
#define XLevelH		0x10
#define Max_Column	128
#define Max_Row		64
#define	Brightness	0xFF 
#define X_WIDTH 	128
#define Y_WIDTH 	64	    

#define OLED_CMD    0	
#define OLED_DATA   1

extern void Init_I2C(void);                                                     //初始化I2C
extern void Start_I2C(bool rw);                                                 //发送I2C启动信号、I2C_ID的内容和读写信号
extern void Stop_I2C(void);                                                     //发送停止信号

extern void Send_I2C(uint8 Dat);                                                //I2C发送一字节数据
extern uint8 Receive_I2C(void);                                                //I2C接收一字节数据
extern void Initial_LY096BG30(void);
extern void fill_picture(unsigned char fill_Data);
extern void Picture_display();
extern void Delay_50ms(unsigned int Del_50ms)	;
extern void Delay_1ms(unsigned int Del_1ms)	;
extern void Write_IIC_Command(unsigned char IIC_Command);
extern unsigned char code F6x8[][6];
extern unsigned char code F8X16[];
extern void OLED_ShowChar(uint8 x, uint8 y, uint8 chr, uint8 SIZE);
extern void OLED_ShowString(uint8 x, uint8 y, uint8 SIZE, uint8 * chr);
extern void LookUpCrc(void);
 extern int16 display_ch[4];
#define QUEUE_SIZE_MAX     512


/* Exported variables ---------------------------------------------------------------------------*/



extern void OLEDDisplay(void);

#endif
